package com.yc.baihe.beans;

import java.io.Serializable;

public class Likes implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private int typenum;//类别编号
	private String likesname;//具体喜好
	
	private String temp1;//备用
	private String temp2;//备用
	
	@Override
	public String toString() {
		return "Likes [typenum=" + typenum + ", likesname=" + likesname
				+ ", temp1=" + temp1 + ", temp2=" + temp2 + "]";
	}

	public int getTypenum() {
		return typenum;
	}

	public void setTypenum(int typenum) {
		this.typenum = typenum;
	}

	public String getLikesname() {
		return likesname;
	}

	public void setLikesname(String likesname) {
		this.likesname = likesname;
	}

	public String getTemp1() {
		return temp1;
	}

	public void setTemp1(String temp1) {
		this.temp1 = temp1;
	}

	public String getTemp2() {
		return temp2;
	}

	public void setTemp2(String temp2) {
		this.temp2 = temp2;
	}

	public Likes(int typenum, String likesname, String temp1, String temp2) {
		super();
		this.typenum = typenum;
		this.likesname = likesname;
		this.temp1 = temp1;
		this.temp2 = temp2;
	}

	public Likes() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((likesname == null) ? 0 : likesname.hashCode());
		result = prime * result + ((temp1 == null) ? 0 : temp1.hashCode());
		result = prime * result + ((temp2 == null) ? 0 : temp2.hashCode());
		result = prime * result + typenum;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Likes other = (Likes) obj;
		if (likesname == null) {
			if (other.likesname != null)
				return false;
		} else if (!likesname.equals(other.likesname))
			return false;
		if (temp1 == null) {
			if (other.temp1 != null)
				return false;
		} else if (!temp1.equals(other.temp1))
			return false;
		if (temp2 == null) {
			if (other.temp2 != null)
				return false;
		} else if (!temp2.equals(other.temp2))
			return false;
		if (typenum != other.typenum)
			return false;
		return true;
	}
	
}
